package study.hashmap的key存在hashcode相同的情况;

import java.util.HashMap;
import java.util.Map.Entry;

public class Snippet {
	
	public static void main(String[] args) {
		String a = new String("abc");
		String b = new String("abc");
		HashMap map = new HashMap();
		map.put(a, 9);
		map.put(b, 10);
		
		System.out.println(map.get(b));
		
		HashMap map2 = new HashMap<>();
		System.out.println(map2.size() );

	}
}

